package com.hry.store.service.impl;

import com.hry.store.dao.ProductDetailMapper;
import com.hry.store.pojo.ProductDetail;
import com.hry.store.service.ProductDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductDetailServiceImpl implements ProductDetailService {
    @Autowired
    private ProductDetailMapper productDetailMapper;

    @Override
    public List<ProductDetail> getProductDetailByProductId(Integer productId) {
        List <ProductDetail> productDetailList = productDetailMapper.getProductDetailByProductId(productId);
        return productDetailList;
    }
}
